package com.imooc.sm.global;

/**
 * @Author Jeff
 * @Time: 2019/7/15  1:00
 */
public class TimeAppellation {

    private static String appellation = "no Time parameters=>(没有时间参数)";


    public static String backAppellation(Integer h){
        if(h<=5&&h>=0){
            appellation = "工作需劳役结合，注意身体";
        } else if(h>5&&h<12){
            appellation = "早上好!";
        } else if(h>=12&&h<14){
            appellation = "中午好！";
        } else if(h>=14&&h<=18){
            appellation = "下午好!";
        } else if(h>18&&h<24){
            appellation = "晚上好!";
        }
        return appellation;
    }
}
